﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Desaware.MachineLicense40;

namespace FMS.Formulation.Licensing.Engine
{
    internal class NICIdentifiers : ISystemIdentifier
    {
        public string Name => "Network";

        public string[] Values
        {
            get
            {
                WMINetworkAdapterInfo wMINetworkAdapterInfo = new WMINetworkAdapterInfo();
                string text = wMINetworkAdapterInfo.Read();
                string[] array = new string[1] { text };
                Utilities utilities = new Utilities();
                string[] array2 = new string[array.GetLength(0)];
                for (int i = 0; i < array.GetLength(0); i++)
                {
                    array2.SetValue(utilities.GetHash256OfString(array[i]), i);
                }
                return array2;
            }
        }
    }

}
